import request from '@/utils/request'

// 获取职级列表
export function getPayRankList(query) {
  return request({
    url: '/professionRank/list',
    method: 'get',
    params: query
  })
}

// 新增职级
export function addPayRank(query) {
  return request({
    url: '/professionRank',
    method: 'post',
    params: query
  })
}
// 修改职级
export function editPayRank(query) {
  return request({
    url: '/professionRank',
    method: 'put',
    params: query
  })
}

// 删除职级
export function deletePayRank(ids) {
  return request({
    url: '/professionRank/'+ids,
    method: 'delete'
  })
}
